package com.bw.zcb.mvp.contract;

import com.bw.zcb.mvp.base.model.BaseEntity;
import com.bw.zcb.mvp.base.model.IModel;
import com.bw.zcb.mvp.base.view.IView;
import com.bw.zcb.mvp.model.entity.UserItemEntity;
import com.bw.zcb.mvp.model.entity.UserMenuEntity;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public interface UserContract {
    interface IUserModel extends IModel{
        Observable<BaseEntity> requestUser(Map<String,Object> map);
    }
    interface IUserView extends IView{
        //用户信息回调方法,今日签到任务列表
        void refresh(BaseEntity baseEntity);
        void refreshMenu(List<UserMenuEntity> menues);
        void refreshItems(List<UserItemEntity> items);

    }
}
